import {get, post} from "./axios"

// 合同列表
const signContractList = async function(data) {
    const url = `/admin/signContract/list`
    return await post(url, data)
}

// 添加合同
const addContract = async function(data) {
    const url = `/admin/signContract/add`
    return await post(url, data)
}

// 编辑合同
const editContract = async function(data) {
    const url = `/admin/signContract/edit`
    return await post(url, data)
}

// 预览合同
const deleteContract = async function(data) {
    const url = `/admin/signContract/batchEdit`
    return await post(url, data)
}

// 区域商户列表
const merchList = async function(data) {
    const url = `/admin/merch/list`
    return await get(url, data)
}

// 门店列表
const storeList = async function(data) {
    const url = `/admin/store/list`
    return await get(url, data)
}
export {
    signContractList,
    addContract,
    editContract,
    deleteContract,
    merchList,
    storeList
}
